<template>
  <div>
    <p>选择你喜欢的专栏</p>
    <label>
    <input type="checkbox" value="科幻" v-model="like">科幻
    </label>
    <label><input type="checkbox" value="喜剧" v-model="like">喜剧</label>
    <label><input type="checkbox" value="动漫" v-model="like">动漫</label>
    <label><input type="checkbox" value="冒险" v-model="like">冒险</label>
    <label><input type="checkbox" value="科技" v-model="like">科技</label>
    <label><input type="checkbox" value="军事" v-model="like">军事</label>
    <label><input type="checkbox" value="娱乐" v-model="like">娱乐</label>
    <label><input type="checkbox" value="奇闻" v-model="like">奇闻</label>
    <ul>
      <li v-for="item in like" :key="item">{{item}}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr:["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
      like: [],
  }
}
}
</script>

<style>

</style>